Micron Document




Object-oriented programming
part 25/57 · 94.0 KB total
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Container object: contains other objects
Factory object: creates other objects
Metaobject: Used to create other objects (similar to a class, but an object)
Prototype object: a specialized metaobject that creates new objects by copying itself
Singleton object: only instance of its class for the lifetime of the program
Filter object: receives a stream of data as its input and transforms it into the object's output

A common anti-pattern is the God object, an object that knows or does too much.

Gang of Four design patterns

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────